﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using GeoFinderClientApp.ViewModel;

namespace GeoFinderClientApp.View.UserControls
{
    public partial class PushSettingsControl : UserControl
    {
        ViewModels vm;
        public PushSettingsControl()
        {
            InitializeComponent();
            vm = new ViewModels();
            vm.GetPushOptions();
            var c = vm.PushOptions;

            PushEnabled.IsChecked = c.First().IsEnabled;
            TileEnabled.IsChecked = c[1].IsEnabled;
            ToastEnabled.IsChecked = c[2].IsEnabled;
            RawEnabled.IsChecked = c[3].IsEnabled;

        }
    }
}
